import "@/scss/ejs-page.scss";
import { createApp, onMounted, ref } from "vue/dist/vue.esm-bundler.js";
import DemoItem from "@/components/vue/DemoItem.vue";
import axios from "axios";

// const request = axios.create({
//   baseURL: import.meta.env.API_URL,
//   timeout: 60 * 1000,
// });

createApp({
  components: { DemoItem },
  setup() {
    const demoList = ref([
      {
        title: "Title1",
      },
      {
        title: "Title2",
      },
      {
        title: "Title3",
      },
    ]);

    onMounted(async () => {
      // const res = await request.get("/product/manage/web/page", {
      //   params: {
      //     productState: "0",
      //   },
      // });
      // const data = res.data.data;
    });

    return {
      demoList,
    };
  },
}).mount("#ejsPage");
